// 获取permission相关的接口
import request from '@/utils/request'
// 获取权限列表
export const getPermissionList = () => {
  return request.get('/sys/permission')
}

// 删除权限节点
export const delPermissionAPI = (id) => {
  return request.delete(`/sys/permission/${id}`)
}

// 添加节点
export const addPermissionAPI = (data) => {
  return request.post(`/sys/permission`, data)
}


// 获取权限详情
export const getPermissionDetail = (id) => {
  return request.get(`/sys/permission/${id}`)
}
// 修改权限
export const updatePermissionAPI = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}


